<!--
 * @Author: WangGuojian 1085844536@qq.com
 * @Date: 2024-06-27 22:44:27
 * @LastEditTime: 2024-06-27 22:51:22
 * @LastEditors: WangGuojian 1085844536@qq.com
 * @FilePath: \html\code\2_CSS\07_CSS选择器优先级\选择器优先级_简单聊.html
 * @Description:
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>选择器优先级_简单聊</title>
    <style>
        /* 行内 > ID选择器 > 类选择器 >元素选择器 > 通配选择器 */
        #atguigu {
            color: red;
        }

        /* h2 {
            color: orange;
        } */

        /* .slogan {
            color: green;
        } */

        /* h2 {
            color: gray;
        } */

        * {
            color: purple;
            font-size: 50px;
        }
    </style>
</head>

<body>
    <h2 class="slogan" id="atguigu">尚硅谷，让天下没用难学的技术！</h2>
</body>

</html>